package com.itouch.bracelet.bluetooth;

import java.io.Serializable;

/**
 * 

* @ClassName: BluetoothPacket 

* @Description: TODO(蓝牙通讯包) 

* @author sunshineHu hucx@itouch.com.cn

* @date 2015年1月15日 下午1:29:33 

*
 */
public class BluetoothPacket implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 400329224047506873L;

	
	private BluetoothType type;//蓝牙消息类型
	
	private byte[] raw;//原始数据
	
	private byte header;//协议头 0x02
	
	private byte[] cmd;//功能码
	private byte[] id;//id 长度为2
	private byte lenth;//长度
	private byte[] data;//数据区
	
	private byte[] content;//内容区，包括以上4个部分，需要校验
	
	private byte[] verify;//CRC16验证
	
	private byte end;//协议结束0x03

	
	public byte[] getRaw() {
		return raw;
	}


	public void setRaw(byte[] raw) {
		this.raw = raw;
	}


	public byte getHeader() {
		return header;
	}


	public void setHeader(byte header) {
		this.header = header;
	}


	public byte[] getCmd() {
		return cmd;
	}


	public void setCmd(byte[] cmd) {
		this.cmd = cmd;
	}


	public byte[] getId() {
		return id;
	}


	public void setId(byte[] id) {
		this.id = id;
	}


	public byte getLenth() {
		return lenth;
	}


	public void setLenth(byte lenth) {
		this.lenth = lenth;
	}


	public byte[] getData() {
		return data;
	}


	public void setData(byte[] data) {
		this.data = data;
	}


	public byte[] getVerify() {
		return verify;
	}


	public void setVerify(byte[] verify) {
		this.verify = verify;
	}


	public byte getEnd() {
		return end;
	}


	public void setEnd(byte end) {
		this.end = end;
	}


	public byte[] getContent() {
		return content;
	}


	public void setContent(byte[] content) {
		this.content = content;
	}


	public BluetoothType getType() {
		return type;
	}


	public void setType(BluetoothType type) {
		this.type = type;
	}


	
}
